package com.fanshilz.flower2025.apps.admin.project.resp;

import com.fanshilz.flower2025.business.flower.attachment.entity.AttachmentObjTypeEnum;
import com.mybatisflex.annotation.RelationOneToMany;
import lombok.Data;

import java.sql.Timestamp;
import java.util.List;

@Data
public class ProjectTableDetailResp {

    private Long projectId;

    /**
     * UUID
     */
    private String projectUuid;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 年收入
     */
    private Double projectIncomeYearMoney;

    /**
     * 年利润
     */
    private Double projectProfitYearMoney;

    /**
     * 成立时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Timestamp projectFoundingTime;

    /**
     * 成立了多少年
     */
    private Integer projectFoundingTimeYear;

    /**
     * 地址省份
     */
    private String projectProvinceName;

    /**
     * 地址省份code
     */
    private String projectProvinceCode;

    /**
     * 地址城市
     */
    private String projectCityName;

    /**
     * 地址城市code
     */
    private String projectCityCode;

    /**
     * 地址区
     */
    private String projectAreaName;

    /**
     * 地址区code
     */
    private String projectAreaCode;

    /**
     * 售价 叫价
     */
    private Double projectSellingPriceMoney;

    /**
     * 行业
     */
    private String projectIndustryLabel;

    /**
     * 行业value
     */
    private Integer projectIndustryValue;

    /**
     * 类型
     */
    private String projectTypeLabel;

    /**
     * 类型value
     */
    private Integer projectTypeValue;

    /**
     * 员工人数
     */
    private Integer projectEmployeesNumber;

    /**
     * 出售原因
     */
    private String projectSellReasonLabel;

    /**
     * 出售原因value
     */
    private Integer projectSellReasonValue;

    /**
     * 出售股份比例
     */
    private Double projectSellSharesProportion;

    /**
     * 公司介绍
     */
    private String projectCorporationDesc;

    /**
     * 生意亮点
     */
    private String projectBusinessHighlightDesc;

    /**
     * 运营情况
     */
    private String projectOperationSituationDesc;

    /**
     * 其他信息
     */
    private String projectOtherDesc;

    /**
     * 项目状态
     */
    private String projectStatusLabel;

    /**
     * 项目状态value
     */
    private Integer projectStatusValue;

    /**
     * 交易状态
     */
//    private String projectTradingStatusLabel;

//    private Integer projectTradingStatusValue;

    /**
     * 发布人
     */
    private String projectUserName;

    private String projectUserMobile;

    private Integer projectUserAge;

    private String projectUserTypeLabel;

    private Integer projectUserTypeValue;

    private Integer projectSort;

    private String projectShortName;

    private Timestamp projectPublishTime;

    private Long projectPublishUserId;

    private String projectPublishUserName;

//    private String projectWechatUserNickName;
//
//    private String projectWechatUserMobile;

    @RelationOneToMany(selfField = "projectId", targetField = "objId", targetTable = "flower_attachment", extraCondition = "obj_type = 2 or obj_type = 3")
    private List<AttachmentDetailResp> projectCoverImages;

    @RelationOneToMany(selfField = "projectId", targetField = "objId", targetTable = "flower_attachment", extraCondition = "obj_type = 0")
    private List<AttachmentDetailResp> projectBusinessLicenseImages;

    @RelationOneToMany(selfField = "projectId", targetField = "objId", targetTable = "flower_attachment", extraCondition = "obj_type = 1")
    private List<AttachmentDetailResp> projectCorporationImages;

    private Timestamp createTime;

    private Long createUserId;

    private String createUserName;

    private Long updateUserId;

    private Timestamp updateTime;

    private String updateUserName;

}
